<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

	<xsl:template match="/">
		<!--<html>
			<body>-->
				<xsl:for-each select="controls/control">
					<xsl:if test="stories/story or bugs/bug">						
						<h4>
							<xsl:value-of select="area"/>
						</h4>

						<xsl:if test="stories/story">
							<h5>New:</h5>
							<ul>
								<xsl:for-each select="stories/story">
									<li>
										<xsl:value-of select="."/>
									</li>
								</xsl:for-each>
							</ul>
						</xsl:if>

						<xsl:if test="bugs/bug">
							<h5>Fixed:</h5>
							<ul>
								<xsl:for-each select="bugs/bug">
									<li>
										<xsl:value-of select="."/>
									</li>
								</xsl:for-each>
							</ul>
						</xsl:if>
					</xsl:if>
				</xsl:for-each>
			<!--</body>
		</html>-->
	</xsl:template>
</xsl:stylesheet>
